Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-2596

AssertionError: Not-null boxed primitive should come back as primitive when translating correlated variables

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.17.0
    • 1.18.0
    • core
    • None

    Description

      Queries introducing correlated variables on boxed primitive fields throw an assertion error when they are translated to generated code in the Enumerable convention.

      For example, consider the following query where e.commission is a field of type Integer:

      SELECT empid FROM emps e 
      WHERE NOT EXISTS 
           (SELECT 1 FROM depts d WHERE d.deptno=e.commission)
      

       

      Attachments

        Issue Links

          Activity

            People

              julianhyde Julian Hyde
              zabetak Stamatis Zampetakis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: